<table id="sample-table-1" class="table table-striped table-bordered table-hover">
												<thead>
												<tr>
											       <th>班级</th>
											       <th>专业</th>
												<th>删除</th>
											     </tr>
												</thead>

												<tbody>
												<?php
											    foreach($classRooms as $c)
												echo'	
												<tr>
												
												
												<td>'.$c->name.'</td>
												<td>'.$c->major->name.'</td>
												
												<td>
                                               <form method ="post" action="'.Yii::app()->createUrl('basicinfo/deletedata').'">
                                               <input type="hidden" name="id" value="'.$c->classId.'">
                                               <input type="hidden" name="type" value="c">												   
                                               <button type = "submit" class="btn btn-xs btn-danger">
													<i class="icon-remove-sign bigger-120"></i>
												</button>	
                                               </form>												
												</td>
											    </tr>';
                                               ?>												
											    </tbody>
											
											</table>
<hr>
<div class="widget-box">
				<div class="widget-header widget-header-small">
					<h5 class="lighter">添加班级</h5>
				</div>

			<div class="widget-body">
				<div class="widget-main">
				<form class="form-horizontal" method = "post" action="<?php echo Yii::app()->createUrl('basicinfo/adddata'); ?>">
								<input type="hidden"   name="type" value="class" >
								<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 
										  选择专业：
										</label>

										<div class="col-sm-4">
										    <select class="form-control validate[required]" name="majorId">
											  <option value="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
											  <?php
											    foreach($major as $m){
													echo '<option value="'.$m->majorId.'">'.$m->name.'</option>';
													
												}
											  ?>
											</select>
										</div>
									</div>
								<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 
										  新的班级：
										</label>

										<div class="col-sm-9">
										    
											<input type="text" placeholder="班级名称" class="col-xs-10 col-sm-5 validate[required]" name="cn">
											
										</div>
									</div>
									<div class="clearfix form-actions">
										<div class="col-md-offset-3 col-md-9">
											<button type="submit" class="btn btn-info" type="button">
												<i class="icon-ok bigger-110"></i>
											  提交
											</button>

											
										</div>
									</div>
					</form>

				</div>
		</div>
</div>